package com.youngjun.common.util;

import okhttp3.OkHttpClient;

import java.io.IOException;
import java.security.GeneralSecurityException;
import java.util.concurrent.TimeUnit;

public class Okhttp3Utils {

    public static OkHttpClient getOkHttpClient() throws GeneralSecurityException, IOException {
        return new OkHttpClient.Builder()
                .connectTimeout(10000, TimeUnit.SECONDS)
                .writeTimeout(10000, TimeUnit.SECONDS)
                .readTimeout(10000, TimeUnit.SECONDS)
                .build();
    }
}
